┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/share/doc/perl-CPAN-Meta/t/parse-cpan-meta
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: 03_functions.t
#!/usr/bin/perl delete $ENV{PERL_YAML_BACKEND}; delete $ENV{PERL_JSON_BACKEND}; # Testing of basic document structures use strict; BEGIN { $| = 1; $^W = 1; } use Test::More tests => 2; use Parse::CPAN::Meta (); my $one = <<'END_YAML'; --- - foo END_YAML my $two = <<'END_YAML'; --- - foo --- - bar END_YAML my $one_scalar_tiny = Parse::CPAN::Meta::Load( $one ); my $two_scalar_tiny = Parse::CPAN::Meta::Load( $two ); is_deeply( $one_scalar_tiny, [ 'foo' ], 'one: Parsed correctly' ); is_deeply( $two_scalar_tiny, [ 'bar' ], 'two: Parsed correctly' );
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 02_api.t
T
7.7 KB
2024-10-29 00:00
EDIT
📄 03_functions.t
T
562 B
2024-10-29 00:00
EDIT
📄 04_export.t
T
446 B
2024-10-29 00:00
EDIT
📄 05_errors.t
T
408 B
2024-10-29 00:00
EDIT